package com.ruoyi.dlxx.controller;



import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.dlxx.domain.DataVehicleWarning;
import com.ruoyi.dlxx.service.IDataVehicleWarningService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/dataWaring")
public class DataVehicleWarningContrller {


    @Resource
    private IDataVehicleWarningService dataVehicleWarningService;


    @PostMapping("/getWaring")
    @ResponseBody
    public AjaxResult frame1(@RequestBody DataVehicleWarning dataVehicleWarning)
    {

        List<DataVehicleWarning> dataVehicleWarnings = dataVehicleWarningService.selectDataVehicleWarningList(dataVehicleWarning);

//        List<DataVehicleWarning> dataVehicleWarnings = dataVehicleWarningService.selectDataVehicleWarningLists();
        return AjaxResult.success(dataVehicleWarnings);

    }


}
